package de.gameduell.framework.gui.wrapper {
	import flash.events.Event;
	import flash.events.EventDispatcher;		

	/**
	 * @author cbra
	 */
	public class EventDispatcherWrapper {
		private var _eventDispatcher:EventDispatcher;
		
		public function EventDispatcherWrapper(aEventDispatcher:EventDispatcher) {
			_eventDispatcher = aEventDispatcher;
		}
		
		public function addEventListener(type:String,listener:Function,useCapture:Boolean = false,priority:int = 0,useWeakReference:Boolean = false):void{
			_eventDispatcher.addEventListener(type, listener,useCapture,priority,useWeakReference);
		}
		
		public function removeEventListener(type:String,listener:Function,useCapture:Boolean = false):void{
			_eventDispatcher.removeEventListener(type, listener,useCapture);
		}
		
		public function dispatchEvent(event:Event):Boolean{
			return _eventDispatcher.dispatchEvent(event);
		}
		
		public function hasEventListener(type:String):Boolean{
			return _eventDispatcher.hasEventListener(type);
		}
		
		public function willTrigger(type:String):Boolean{
			return _eventDispatcher.willTrigger(type);
		}
	}
}
